Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODLink


UnregisterDependent

The UnregisterDependent method removes the previously registered destination part from the list of parts to be notified whenever the link is updated.

void UnregisterDependent (in ODPart clientPart);
clientPart
A reference to the destination part to be unregistered.
DISCUSSION
If your part is the destination of this link, you can call this method to unregister your part as a dependent. Dependent parts receive automatic notification of any changes to the link's content. You can reregister your part by calling the RegisterDependent method.

You should call this method in your part's HandleEvent method after calling the ShowLinkDestinationInfo method if the user has broken the link or has changed from automatic to manual notification. In either case, you should call this method only if the selected link destination is your part's only registered destination of the link-source object corresponding to this link object.

The UnregisterDependent method returns without error if the specified destination part was not previously registered as a dependent of this link.

SEE ALSO
The ODLink::RegisterDependent method (page 355).
The ODLink::ShowLinkDestinationInfo method (page 357).
"Breaking and Cutting Links" on page 394 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help